/**
 * 
 */
package com.gmail.blackdog1987.carcare.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.gmail.blackdog1987.carcare.R;

/**
 * @author wdy
 *
 */
public class BottomNavigationbar extends LinearLayout {
	
	private ImageView mMsgView, mFindView, mCenterView, mContactView, mSetView;

	public BottomNavigationbar(Context context) {
		super(context);
	}
	
	public BottomNavigationbar(Context context,AttributeSet attrs) {
		super(context, attrs);
		
		LayoutInflater layoutinflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		layoutinflater.inflate(R.layout.widget_bottomnavigation_bar, this);
		
		mMsgView = (ImageView) findViewById(R.id.msg_image);
		mFindView = (ImageView)findViewById(R.id.find_image);
		//mCenterView = (ImageView)findViewById(R.id.center_image);
		mContactView = (ImageView)findViewById(R.id.contact_image);
		mSetView = (ImageView)findViewById(R.id.set_image);
	}
	
	public void setMsgListener(OnClickListener l) {
		mMsgView.setOnClickListener(l);
	}
	
	public void setFindListener(OnClickListener l) {
		mFindView.setOnClickListener(l);
	}
	
	public void setCenterListener(OnClickListener l) {
		mCenterView.setOnClickListener(l);
	}
	
	public void setContactListener(OnClickListener l) {
		mContactView.setOnClickListener(l);
	}
	
	public void setSetListener(OnClickListener l) {
		mSetView.setOnClickListener(l);
	}
	
}
